Ensure Python 2 compatibility

Skyfield being 2.6+ compatible, we had to follow the same requirements.
Runtime code should be compatible, too.
This commit is contained in:
Bruno Bord 2019-08-23 12:28:48 +02:00
parent 5001b9aab7
commit 8da891a2c0
No known key found for this signature in database
GPG Key ID: 9499EA6788BF80A1
3 changed files with 8 additions and 2 deletions

View File

@ -3,6 +3,7 @@
## master (unreleased)
* Document the "Advanced" usage, with the ``expire`` option for the Loader.
* Ensure it's Python 2 compatible, since ``skyfield`` is compatible with Python 2.6/2.7.
## 0.0.1 (2019-07-29)

View File

@ -15,7 +15,6 @@ Several issues are raised by these data files:
* Make regular releases to refresh the files before they expire.
* Provide a warning / logging mechanism when the files are about to expire (or when they are outdated) to still allow you to compute things with the loaded assets, but being informed you need to upgrade.
This way, you could **install or upgrade** this data package via ``pip``.
Once all the files are on your disk space, you can instantiate your ``skyfield`` loader pointing at their path, without having to worry about anything.
@ -49,6 +48,8 @@ load = Loader(get_skyfield_data_path(), expire=False)
We're providing a ``Makefile`` with basic targets to play around with the toolkit. use ``make help`` to get more details.
*Note:* This project is, and should be compatible with Python 2.6/2.7 and Python 3.3+, to be kept the same Python compatiblity that `skyfield` has.
## Copyright
### Data files

View File

@ -17,6 +17,7 @@ classifiers =
License :: OSI Approved :: MIT License
Operating System :: OS Independent
Programming Language :: Python
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3.3
Programming Language :: Python :: 3.4
Programming Language :: Python :: 3.5
@ -26,7 +27,10 @@ classifiers =
[options]
zip_safe = false
include_package_data = True
python_requires = >= 3.3
python_requires = >=2.6, !=3.0.*, !=3.1.*, !=3.2.*, <4
packages = skyfield_data
setup_requires =
setuptools
[bdist_wheel]
universal = 1