-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MAINT: pyproject.toml, docs #129
Changes from 36 commits
71a62be
03eefb0
16c924a
e71fce4
172c325
f6a774a
4f6bad4
2e42767
ab26d38
4ac4167
64496cf
1301eee
2788454
2a8b50c
4b2a317
cd7a86f
a7e8f73
d48ff06
e22664b
9faf534
e38bcd5
fc14e62
2a321e8
1e7e65a
617e18c
b0d6f08
92846cb
08000ab
23da8f8
a856767
de9efbb
04e0909
1d48f49
859635b
0149729
e0ffbad
f554299
edd0c41
ba59f29
771939d
879f3a5
5e0cd34
df393f4
f86fd9d
2b41e01
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,24 +40,32 @@ Installation Options | |
|
||
|
||
2. Install pysatNASA: | ||
Change directories into the repository folder and run the setup.py file. | ||
Change directories into the repository folder and build the project. | ||
There are a few ways you can do this: | ||
|
||
A. Install on the system (root privileges required):: | ||
|
||
|
||
sudo python setup.py install | ||
sudo pip install . | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think you might need to run |
||
|
||
B. Install at the user level:: | ||
|
||
|
||
python setup.py install --user | ||
C. Install with the intent to develop locally:: | ||
pip install --user . | ||
|
||
C. Install with the intent to change the code:: | ||
|
||
|
||
pip install --user -e . | ||
|
||
.. extras-require:: pysatcdf | ||
:pyproject: | ||
|
||
python setup.py develop --user | ||
.. extras-require:: test | ||
:pyproject: | ||
|
||
.. extras-require:: all | ||
:setup.cfg: | ||
.. extras-require:: doc | ||
:pyproject: | ||
|
||
.. _post-install: | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
[build-system] | ||
requires = ["setuptools", "pip >= 10"] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Need a minimum version for setuptools? Or a maximum version?
jklenzing marked this conversation as resolved.
Show resolved
Hide resolved
|
||
build-backend = "setuptools.build_meta" | ||
jklenzing marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
[project] | ||
name = "pysatNASA" | ||
version = "0.0.5" | ||
description = "pysat support for NASA Instruments" | ||
readme = "README.md" | ||
requires-python = ">=3.6" | ||
license = {file = "LICENSE"} | ||
authors = [ | ||
{name = "Jeff Klenzing, et al.", email = "[email protected]"}, | ||
] | ||
classifiers = [ | ||
"Development Status :: 3 - Alpha", | ||
"Topic :: Scientific/Engineering :: Astronomy", | ||
"Topic :: Scientific/Engineering :: Physics", | ||
"Topic :: Scientific/Engineering :: Atmospheric Science", | ||
"Intended Audience :: Science/Research", | ||
"License :: OSI Approved :: BSD License", | ||
"Natural Language :: English", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Operating System :: POSIX :: Linux", | ||
"Operating System :: MacOS :: MacOS X", | ||
"Operating System :: Microsoft :: Windows" | ||
] | ||
keywords = [ | ||
"pysat", | ||
"ionosphere", | ||
"magnetosphere", | ||
"solar wind", | ||
"thermosphere" | ||
] | ||
dependencies = [ | ||
"beautifulsoup4", | ||
"cdasws", | ||
"cdflib >= 0.4.4", | ||
"lxml", | ||
"netCDF4", | ||
"numpy", | ||
"pandas", | ||
"pysat >= 3.0.4", | ||
"requests", | ||
"xarray" | ||
] | ||
|
||
[project.optional-dependencies] | ||
pysatcdf = ["pysatCDF"] | ||
test = [ | ||
"coveralls < 3.3", | ||
"flake8", | ||
"flake8-docstrings", | ||
"hacking >= 1.0", | ||
"pytest", | ||
"pytest-cov", | ||
"pytest-ordering" | ||
] | ||
doc = [ | ||
"extras_require", | ||
"ipython", | ||
"m2r2", | ||
"numpydoc", | ||
"sphinx", | ||
"sphinx_rtd_theme" | ||
] | ||
|
||
[project.urls] | ||
Documentation = "https://pysatnasa.readthedocs.io/en/latest/" | ||
Source = "https://github.com/pysat/pysatNASA" | ||
|
||
[tool.coverage.report] | ||
omit = ["*/instruments/templates/"] | ||
|
||
[tool.pytest.ini_options] | ||
addopts = "-vs --cov=pysatNASA" | ||
markers = [ | ||
"all_inst", | ||
"download", | ||
"no_download", | ||
"load_options", | ||
"first", | ||
"second" | ||
] |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
netCDF4 | ||
requests | ||
beautifulsoup4 | ||
lxml | ||
cdasws | ||
cdflib>=0.4.4 | ||
lxml | ||
netCDF4 | ||
numpy | ||
pandas | ||
pysat>=3.0.4 | ||
cdasws | ||
requests | ||
xarray |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,69 +1,6 @@ | ||
[metadata] | ||
name = pysatNASA | ||
version = file: pysatNASA/version.txt | ||
url = https://github.com/pysat/pysatNASA | ||
author = Jeff Klenzing | ||
author_email = [email protected] | ||
description = 'pysat support for NASA Instruments' | ||
keywords = | ||
pysat | ||
ionosphere | ||
classifiers = | ||
Development Status :: 3 - Alpha | ||
Topic :: Scientific/Engineering :: Physics | ||
Topic :: Scientific/Engineering :: Atmospheric Science | ||
Intended Audience :: Science/Research | ||
License :: OSI Approved :: BSD License | ||
Natural Language :: English | ||
Programming Language :: Python :: 3.5 | ||
Programming Language :: Python :: 3.6 | ||
Programming Language :: Python :: 3.7 | ||
Operating System :: MacOS :: MacOS X | ||
Operating System :: POSIX :: Linux | ||
license_file = LICENSE | ||
long_description = file: README.md | ||
long_description_content_type = text/markdown | ||
|
||
[options] | ||
python_requires = >= 3.5 | ||
setup_requires = | ||
setuptools >= 38.6 | ||
pip >= 10 | ||
include_package_data = True | ||
zip_safe = False | ||
packages = find: | ||
install_requires = | ||
cdasws | ||
netCDF4 | ||
requests | ||
beautifulsoup4 | ||
lxml | ||
cdflib | ||
numpy | ||
pandas | ||
xarray | ||
pysat | ||
|
||
[options.extras_require] | ||
all = | ||
pysatCDF | ||
|
||
[coverage:report] | ||
omit = | ||
*/instruments/templates/ | ||
|
||
[flake8] | ||
max-line-length = 80 | ||
ignore = | ||
D200 | ||
D202 | ||
W503 | ||
|
||
[tool:pytest] | ||
markers = | ||
all_inst: tests all instruments | ||
download: tests for downloadable instruments | ||
no_download: tests for instruments without download support | ||
load_options: tests for instruments with additional options | ||
first: first tests to run | ||
second: second tests to run |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, there's a better way to manage files and stuff in packages now. See the stuff here: aburrell/apexpy#123
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure how to implement this in the docs. I don't have a package to refer to