Skip to content

Commit dfe2f1f

Browse files
Add versioneer
1 parent 9526351 commit dfe2f1f

File tree

8 files changed

+2945
-3
lines changed

8 files changed

+2945
-3
lines changed

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
mapreader/_version.py export-subst

conda.recipe/meta.yaml

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{% set data = load_setup_py_data() %}
2+
3+
package:
4+
name: mapreader-cookiecutter-demo
5+
version: {{ data['version'] }}
6+
7+
source:
8+
path: ..
9+
10+
build:
11+
# If the installation is complex, or different between Unix and Windows, use
12+
# separate bld.bat and build.sh files instead of this key. Add the line
13+
# "skip: True # [py<35]" (for example) to limit to Python 3.5 and newer, or
14+
# "skip: True # [not win]" to limit to Windows.
15+
script: {{ PYTHON }} -m pip install --no-deps --ignore-installed -vv .
16+
17+
entry_points:
18+
{% for entry in data['entry_points']['console_scripts'] %}
19+
- {{ entry.split('=')[0].strip() }} = {{ entry.split('=')[1].strip() }}
20+
{% endfor %}
21+
22+
23+
requirements:
24+
# if you need compilers, uncomment these
25+
# read more at https://docs.conda.io/projects/conda-build/en/latest/resources/compiler-tools.html
26+
# build:
27+
# - {{ compilers('c') }}
28+
host:
29+
- python
30+
- pip
31+
run:
32+
- python
33+
# dependencies are defined in setup.py
34+
{% for dep in data['install_requires'] %}
35+
- {{ dep.lower() }}
36+
{% endfor %}
37+
38+
test:
39+
source_files:
40+
- tests
41+
requires:
42+
- pytest
43+
- pytest-cov
44+
commands:
45+
- pytest
46+
47+
about:
48+
home: https://github.com/Living-with-machines/MapReader
49+
summary: MapReader
50+
license: {{ data.get('license') }}
51+
license_file: LICENSE
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Developers Guide
2+
================
3+
4+
Managing version numbers
5+
------------------------
6+
7+
The software version number is managed by the `versioneer <https://github.com/python-versioneer/python-versioneer>`_ package. To update the version number, run the following command:
8+
9+
.. code-block:: bash
10+
11+
git tag -a v1.2.3 -m "mapreader-1.2.3"
12+
git push --tags

mapreader/__init__.py

+3
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,6 @@
1616
from mapreader.process import process
1717

1818
from mapreader.utils import utils
19+
20+
from . import _version
21+
__version__ = _version.get_versions()['version']

0 commit comments

Comments
 (0)