Pip/pyproject.toml/build
Pip
Installing using pip
$ pip install PACKAGENAME --upgrade
Install latest
$ pip install git+https://github.com/OWNER/REPO
Install from branch
$ pip install git+https://github.com/OWNER/REPO@BRANCH
$ pip install git+https://github.com/davidbrochart/xarray_leaflet@vector
Install requirements
pip install -r requirements.txt -r dev-requiments.txt
Editable install
pip install --no-deps -e .
Install with testing reqs
pip install -e .[test_extras]
pip install -e ".[dev]"
Write to log on install
$ pip install pylint --log LOG_FILE
pip.conf
extra-index-url = https://pypi.org/simple
pyproject.toml
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[project]
name = "my_package"
description = "My package description"
readme = "README.rst"
authors = [{name = "me", email = "me@me.com"}]
dependencies = [
"fsspec",
"intake",
"s3fs",
"msgpack",
]
dynamic = ["version", "readme"]
[project.entry-points."intake.drivers"]
pattern_cat = "intake_pattern_catalog:PatternCatalog"
pattern_cat_transform = "intake_pattern_catalog:PatternCatalogTransform"
[tool.setuptools.dynamic]
version = {attr = "my_package.__version__"}
readme = {file = ["README.md"], content-type = "text/markdown"}
with cython
python -m build
pip install setuptools==38.5.2
python setup.py sdist bdist_wheel --universal upload -r local