Skip to content

Commit

Permalink
got pypi running (at least preliminary)
Browse files Browse the repository at this point in the history
needed to introduce some intermediate version numbers
  • Loading branch information
martin-rdz committed Jan 24, 2022
1 parent e10c18a commit 804dc7e
Show file tree
Hide file tree
Showing 8 changed files with 69 additions and 21 deletions.
6 changes: 4 additions & 2 deletions MANIFEST.in
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
33 changes: 22 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,30 +14,41 @@ It tries to simplify following tasks:

Documentation is available at [larda-doc](https://lacros-tropos.github.io/larda-doc/)

### Quick Setup (pypi)

```
python3 -m venv larda-env
source larda-env/bin/activate
pip install setuptools -U
pip install cython
pip install pyLARDA
```

### Requirements
Currently pyLARDA is only targeted on unix operating system.

```
matplotlib==3.0.2
toml==0.10.0
numpy>=1.19
requests==2.9.1
netCDF4==1.4.2
scipy==1.2.0
numpy==1.21
scipy>=1.6
netCDF4>=1.4.2
msgpack
tqdm
numba
cython
cython>=0.29.13
xarray
matplotlib>=3.0.2
requests>=2.21
toml>=0.10.0
tqdm>=4.36.1
numba>=0.45.1
# and for the documentation
sphinx
recommonmark
sphinx_rtd_theme
```

### Quick Setup
### Setup (github)

The pyLARDA module can be installed with:
For development, local data sources and the backend, pyLARDA module can be installed with:
```
python3 -m venv larda-env
source larda-env/bin/activate
Expand Down
1 change: 1 addition & 0 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ pyLARDA documentation
peakTree.rst
spectra.rst
api_overview.rst
package.rst
contributors.rst


Expand Down
20 changes: 20 additions & 0 deletions docs/source/package.rst
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/*
3 changes: 2 additions & 1 deletion pyLARDA/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,4 +246,5 @@ def __init__(self, info_dict):
self.CONFIGURATION_FILE = self.info_dict["param_config_file"]
self.LOCATION = self.info_dict["location"]

self.INFO_TEXT = ''
self.INFO_TEXT = ''

10 changes: 10 additions & 0 deletions pyLARDA/__main__.py
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())
2 changes: 1 addition & 1 deletion pyLARDA/_meta.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


__version__ = "3.3"
__version__ = "3.3.2"
__author__ = "pyLARDA-dev-team"
__doc_link__ = "https://lacros-tropos.github.io/larda-doc/"

Expand Down
15 changes: 9 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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=[
Expand Down

0 comments on commit 804dc7e

Please sign in to comment.