Skip to content

Commit e56752b

Browse files
committed
Cleanup.
1 parent 10c7e24 commit e56752b

File tree

3 files changed

+24
-6
lines changed

3 files changed

+24
-6
lines changed

requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ xarray
1111
tables
1212
astropy
1313
matplotlib
14-
tqdm
14+
tqdm
15+
semantic_version

setup.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616

1717
from setuptools import setup, find_packages
1818

19-
version = '2.0'
19+
from version import version
2020

2121
setup(name='PyTransit',
22-
version=version,
22+
version=str(version),
2323
description='Fast and painless exoplanet transit light curve modelling.',
2424
author='Hannu Parviainen',
2525
author_email='hpparvi@gmail.com',
@@ -29,7 +29,7 @@
2929
'pytransit.utils', 'pytransit.param', 'pytransit.contamination','pytransit.lpf', 'pytransit.lpf.tess',
3030
'pytransit.lpf.baselines'],
3131
package_data={'':['*.cl'], 'pytransit.contamination':['data/*']},
32-
install_requires=["numpy", "numba", "scipy", "pandas", "xarray", "tables"],
32+
install_requires=["numpy", "numba", "scipy", "pandas", "xarray", "tables", "semantic_version"],
3333
include_package_data=True,
3434
license='GPLv2',
3535
classifiers=[
@@ -40,8 +40,6 @@
4040
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
4141
"Operating System :: OS Independent",
4242
"Programming Language :: Python",
43-
"Programming Language :: Fortran",
44-
"Programming Language :: Other"
4543
],
4644
keywords='astronomy astrophysics exoplanets'
4745
)

version.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# PyTransit: fast and easy exoplanet transit modelling in Python.
2+
# Copyright (C) 2010-2020 Hannu Parviainen
3+
#
4+
# This program is free software: you can redistribute it and/or modify
5+
# it under the terms of the GNU General Public License as published by
6+
# the Free Software Foundation, either version 3 of the License, or
7+
# (at your option) any later version.
8+
#
9+
# This program is distributed in the hope that it will be useful,
10+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
# GNU General Public License for more details.
13+
#
14+
# You should have received a copy of the GNU General Public License
15+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
16+
17+
from semantic_version import Version
18+
19+
version = Version('2.0.0-beta')

0 commit comments

Comments
 (0)