-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
got pypi running (at least preliminary)
needed to introduce some intermediate version numbers
- Loading branch information
1 parent
e10c18a
commit 804dc7e
Showing
8 changed files
with
69 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
recursive-include examples *.py *.png | ||
recursive-include scripts *.py *.png | ||
recursive-include http-server *.py *.sh | ||
recursive-include docs * | ||
recursive-include http_server *.py *.sh | ||
recursive-include docs * | ||
global-include *.pyx | ||
global-include *.pxd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,7 @@ pyLARDA documentation | |
peakTree.rst | ||
spectra.rst | ||
api_overview.rst | ||
package.rst | ||
contributors.rst | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
|
||
#################################### | ||
PyPi package | ||
#################################### | ||
|
||
|
||
Adapt ther version number (also in the download_url). | ||
Remove the (autogenerated c file) | ||
|
||
|
||
.. code-block:: python | ||
python3 setup.py sdist | ||
# check build files | ||
python3 -m twine check dist/* | ||
tar tzf dist/pyLARDA-3.3.tar.gz | ||
# upload to test server | ||
python3 -m twine upload --repository testpypi dist/* | ||
# | ||
python3 -m twine upload dist/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/python3 | ||
# coding=utf-8 | ||
""" | ||
""" | ||
|
||
import pyLARDA | ||
|
||
print(pyLARDA.LARDA()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,16 +16,19 @@ | |
# verstr = mo.group(1) | ||
#else: | ||
# raise RuntimeError("Unable to find version string in %s." % (VERSIONFILE,)) | ||
from pyLARDA import __version__ as verstr | ||
from pyLARDA import __author__ as authorstr | ||
#from pyLARDA import __version__ as verstr | ||
#from pyLARDA import __author__ as authorstr | ||
meta = {} | ||
with open("pyLARDA/_meta.py") as fp: | ||
exec(fp.read(), meta) | ||
|
||
setup( | ||
name='pyLARDA', | ||
version=verstr, | ||
version=meta['__version__'], | ||
description='Data cube for handling atmospheric observations of profiling remote sensing instruments.', | ||
long_description=readme, | ||
long_description_content_type='text/markdown', | ||
author=authorstr, | ||
author=meta['__author__'], | ||
author_email='[email protected]', | ||
url='https://github.com/lacros-tropos/larda', | ||
download_url='https://github.com/lacros-tropos/larda/archive/refs/tags/v3.3.tar.gz', | ||
|
@@ -35,9 +38,9 @@ | |
python_requires='>=3.8', | ||
# automatic installation of the dependencies did not work with the test.pypi | ||
# below the try to fix it | ||
setup_requires=['wheel', 'numpy>=1.19', 'scipy>=1.6', 'netCDF4>=1.4.2', 'msgpack', 'cython>=0.29.13', 'xarray', | ||
setup_requires=['wheel', 'numpy==1.21', 'scipy>=1.6', 'netCDF4>=1.4.2', 'msgpack', 'cython>=0.29.13', 'xarray', | ||
'matplotlib>=3.0.2', 'requests>=2.21', 'toml>=0.10.0', 'tqdm>=4.36.1', 'numba>=0.45.1'], | ||
install_requires=['numpy>=1.19', 'scipy>=1.6', 'netCDF4>=1.4.2', 'msgpack', 'cython>=0.29.13', 'xarray', | ||
install_requires=['numpy==1.21', 'scipy>=1.6', 'netCDF4>=1.4.2', 'msgpack', 'cython>=0.29.13', 'xarray', | ||
'matplotlib>=3.0.2', 'requests>=2.21', 'toml>=0.10.0', 'tqdm>=4.36.1', 'numba>=0.45.1'], | ||
ext_modules=cythonize("pyLARDA/peakTree_fastbuilder.pyx"), | ||
classifiers=[ | ||
|