Skip to content

Instantly share code, notes, and snippets.

@elena-roff
Created October 27, 2022 13:44
Show Gist options
  • Save elena-roff/7db75db80edfd2a5f9b863df4e0c5639 to your computer and use it in GitHub Desktop.
Save elena-roff/7db75db80edfd2a5f9b863df4e0c5639 to your computer and use it in GitHub Desktop.
Making packages locally installable
# can also include requirements
# create _init_.py in the package folder
# to install: `pip install -e .`
# or with the github/lab url `pip install git+ssh://[email protected]/...`
import os
import setuptools
here = os.path.abspath(os.path.dirname(__file__))
setuptools.setup(
name="package-name",
version="0.0.0",
author="",
packages=setuptools.find_packages(include=["package-name"]),
classifiers=[
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
],
install_requires=[],
tests_require=[],
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment