Skip to content

Commit b2cb7da

Browse files
authored
setup: Use git tag versioning (#84)
1 parent f35efb6 commit b2cb7da

File tree

4 files changed

+4
-12
lines changed

4 files changed

+4
-12
lines changed

MANIFEST.in

Lines changed: 0 additions & 3 deletions
This file was deleted.

atlite/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
from .cutout import Cutout
2727
from .gis import compute_indicatormatrix, regrid
2828

29-
from ._version import __version__
29+
from .version import version as __version__
3030

3131
__author__ = "Gorm Andresen (Aarhus University), Jonas Hoersch (FIAS), Tom Brown (FIAS), Markus Schlott (FIAS), David Schlachtberger (FIAS)"
3232
__copyright__ = "Copyright 2016-2017 Gorm Andresen (Aarhus University), Jonas Hoersch (FIAS), Tom Brown (FIAS), Markus Schlott (FIAS), David Schlachtberger (FIAS), GNU GPL 3"

atlite/_version.py

Lines changed: 0 additions & 2 deletions
This file was deleted.

setup.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,22 @@
11
from __future__ import absolute_import
22

33
from setuptools import setup, find_packages
4-
from codecs import open
5-
import six
64

75
with open('README.rst', encoding='utf-8') as f:
86
long_description = f.read()
97

10-
exec(open('atlite/_version.py').read())
11-
128
setup(
139
name='atlite',
14-
version=__version__,
1510
author='Jonas Hoersch (FIAS), Tom Brown (FIAS), Gorm Andresen (Aarhus University)',
1611
author_email='jonas.hoersch@posteo.de',
1712
description='Library for fetching and converting weather data to power systems data',
1813
long_description=long_description,
19-
url='https://github.com/FRESNA/atlite',
14+
url='https://github.com/PyPSA/atlite',
2015
license='GPLv3',
2116
packages=find_packages(exclude=['doc', 'test']),
2217
include_package_data=True,
18+
use_scm_version={'write_to': 'atlite/version.py'},
19+
setup_requires=['setuptools_scm'],
2320
install_requires=['numpy',
2421
'scipy',
2522
'pandas>=0.22',

0 commit comments

Comments
 (0)