From a182bd1973bdc73f503855a077ff4e6d00007250 Mon Sep 17 00:00:00 2001 From: Sean Date: Mon, 4 Sep 2023 18:25:16 -0700 Subject: [PATCH] Apparently you need py.typed to indicate that you're using types MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit python 😔 --- README.md | 2 ++ curricularanalytics/py.typed | 0 pyproject.toml | 12 ++++++++++-- 3 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 curricularanalytics/py.typed diff --git a/README.md b/README.md index f7a2712..996dc73 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,9 @@ for guidance on development and bug reporting. To build a distribution for upload to [PyPI](https://pypi.org/), run the following command. ```sh +rm -r dist python -m build +python3 -m twine upload --repository testpypi dist/* ``` Learn more about [build and setuptools](https://setuptools.pypa.io/en/latest/userguide/quickstart.html). diff --git a/curricularanalytics/py.typed b/curricularanalytics/py.typed new file mode 100644 index 0000000..e69de29 diff --git a/pyproject.toml b/pyproject.toml index 00ef7d3..14d55f3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,13 +4,15 @@ build-backend = "setuptools.build_meta" [project] name = "curricularanalytics" -version = "0.1.0a1" +version = "0.1.0a5" authors = [ + # PyPI only lists the first author's email, and I don't want Greg to receive + # emails about a package he doesn't maintain + { name = "Sean Yen", email = "seyen@ucsd.edu" }, { name = "Greg Heileman", email = "gregheileman@gmail.com" }, { name = "Hayden Free", email = "haydenwfree@gmail.com" }, { name = "Orhan Abar", email = "orhan.abar@uky.edu" }, { name = "Will Thompson", email = "wgthompson@uky.edu" }, - { name = "Sean Yen", email = "seyen@ucsd.edu" }, ] description = "A toolbox for studying and analyzing academic program curricula." readme = "README.md" @@ -21,3 +23,9 @@ classifiers = [ "Operating System :: OS Independent", ] dependencies = ["networkx >= 3.1", "pandas >= 2.0.1"] + +[tool.setuptools] +packages = ["curricularanalytics", 'curricularanalytics.types'] + +[tool.setuptools.package-data] +"curricularanalytics" = ["py.typed"]