-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
42 lines (37 loc) · 1.59 KB
/
Copy pathsetup.py
File metadata and controls
42 lines (37 loc) · 1.59 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
"""
Python packaging configuration for dab_project. This file defines how to build and
distribute the project as a Python wheel package. When deploying a wheel with DAB,
the command `python setup.py bdist_wheel` is executed by default to create a
distributable .whl file that can be installed in other Python environments.
"""
from setuptools import setup, find_packages
setup(
name="dab_project",
version="0.0.1",
description="This contains the code in the src directory for the DAB project",
author="TM",
packages=find_packages(
where="./src"
), # This tells setuptools to look for packages in the 'src' directory
package_dir={
"": "src"
}, # This tells setuptools that the root package is in the 'src' directory
install_requires=[
# List your project dependencies here, e.g.:
"setuptools",
],
# entry_points={
# "packages": [
# "main=dab_project.main:main",
# ],
# },
)
# run this script with the command `python setup.py bdist_wheel` to create a wheel distribution of your project.
# This will generate a .whl file in the dist directory, which you can then install using:
# > pip install dist/dab_project-0.0.1-py3-none-any.whl.
# We can install this wheel in our virtual environment using the command `pip install dist/dab_project-0.0.1-py3-none-any.whl`.
# After installing the wheel, we can import the modules from the src directory like this:
# > from citibike import *
#
# We don't need to add the src directory to the sys.path anymore because
# setup script set src as the root package directory.