-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
75 lines (70 loc) · 2.32 KB
/
setup.py
File metadata and controls
75 lines (70 loc) · 2.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
from pathlib import Path
from setuptools import setup, find_packages
HERE = Path(__file__).parent
README = (HERE / "README.md").read_text(encoding="utf8")
setup(
name="neonutilities",
version="0.0.1",
author="Alex Rojas",
author_email="a.rojas8907@gmail.com",
description="Retreive data from the NEON api. Also provides some functionality to analyze and visualize eddy covariance data.",
long_description=README,
long_description_content_type="text/markdown",
project_urls={
"Source Code": "https://github.com/arojas314/neonutilities",
# "Documentation": "https://arojas314.github.io/neonutilities/_build/html/",
},
license="MIT",
packages=find_packages(),
package_data={
"": ["*.cfg", "*.txt"],
},
# python_requires='>3.7',
install_requires=["numpy", "pandas", "geopandas", "shapely"],
keywords=["NEON", "ecology", "lidar", "hyperspectral"],
classifiers=[
"Development Status :: 1 - Beta",
"License :: OSI Approved :: MIT License",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"Natural Language :: English",
"Programming Language :: Python",
"Topic :: Scientific/Engineering :: Ecological Science",
],
zip_safe=False,
)
###############################################################################
## Note: How to upload a new version to PyPI
## -------------------------------------------------
# Update version in
# - setup.py
# - CITATION.cff
# - Create a tag and release in GitHub
# Created a new conda environment with twine
# conda create -n pypi python=3 twine pip -c conda-forge
"""
cd neonutilities
python setup.py sdist bdist_wheel
twine check dist/*
# Test PyPI
twine upload --skip-existing --repository-url https://test.pypi.org/legacy/ dist/*
# PyPI
twine upload --skip-existing dist/*
"""
#######################################################
## If you need to change the default branch (to main in this case)
"""
git branch -m master main
git fetch origin
git branch -u origin/main main
git remote set-head origin -a
"""
#######################################################
## {push updates to github}
"""
git branch -m master main
git fetch origin
git branch -u origin/main main
git remote set-head origin -a
"""