Skip to content

Fix invalid pyproject.toml file and move to setup.cfg #201

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 26, 2023

Conversation

ddeville
Copy link
Contributor

The [project] section of a pyproject.toml file has to include both a name and a version, that we were missing.

However, rather than adding more stuff to pyproject.toml, I've moved the license info to the setup file and pointed pyproject.toml to use setuptools for building (the pyproject.toml file is really only needed to integrated with black, that doesn't support setup files...)

While I was at it I decided to migrate to a setup.cfg file rather than setup.py since its declaritive config is usally preferred these days (and it's a bit easier to load from version/license files than with a setup.py file).

I tested python setup.py install and pip install -e . and both work now.

The `[project]` section of a `pyproject.toml` file *has* to include both
a `name` and a `version`, that we were missing.

However, rather than adding more stuff to `pyproject.toml`, I've moved
the license info to the setup file and pointed `pyproject.toml` to use
`setuptools` for building (the `pyproject.toml` file is really only
needed to integrated with `black`, that doesn't support setup files...)

While I was at it I decided to migrate to a `setup.cfg` file rather than
`setup.py` since its declaritive config is usally preferred these days
(and it's a bit easier to load from version/license files than with a
`setup.py` file).
@ddeville ddeville requested a review from hallacy January 26, 2023 00:10
@ddeville ddeville merged commit ca2fbac into main Jan 26, 2023
@ddeville ddeville deleted the dev/damien/setup-cfg branch January 26, 2023 21:34
davedittrich pushed a commit to davedittrich/openai-python that referenced this pull request Jan 27, 2023
The `[project]` section of a `pyproject.toml` file *has* to include both
a `name` and a `version`, that we were missing.

However, rather than adding more stuff to `pyproject.toml`, I've moved
the license info to the setup file and pointed `pyproject.toml` to use
`setuptools` for building (the `pyproject.toml` file is really only
needed to integrated with `black`, that doesn't support setup files...)

While I was at it I decided to migrate to a `setup.cfg` file rather than
`setup.py` since its declaritive config is usally preferred these days
(and it's a bit easier to load from version/license files than with a
`setup.py` file).
davedittrich pushed a commit to davedittrich/openai-python that referenced this pull request Nov 14, 2023
The `[project]` section of a `pyproject.toml` file *has* to include both
a `name` and a `version`, that we were missing.

However, rather than adding more stuff to `pyproject.toml`, I've moved
the license info to the setup file and pointed `pyproject.toml` to use
`setuptools` for building (the `pyproject.toml` file is really only
needed to integrated with `black`, that doesn't support setup files...)

While I was at it I decided to migrate to a `setup.cfg` file rather than
`setup.py` since its declaritive config is usally preferred these days
(and it's a bit easier to load from version/license files than with a
`setup.py` file).
davedittrich pushed a commit to davedittrich/openai-python that referenced this pull request Nov 14, 2023
The `[project]` section of a `pyproject.toml` file *has* to include both
a `name` and a `version`, that we were missing.

However, rather than adding more stuff to `pyproject.toml`, I've moved
the license info to the setup file and pointed `pyproject.toml` to use
`setuptools` for building (the `pyproject.toml` file is really only
needed to integrated with `black`, that doesn't support setup files...)

While I was at it I decided to migrate to a `setup.cfg` file rather than
`setup.py` since its declaritive config is usally preferred these days
(and it's a bit easier to load from version/license files than with a
`setup.py` file).
cgayapr pushed a commit to cgayapr/openai-python that referenced this pull request Dec 14, 2024
The `[project]` section of a `pyproject.toml` file *has* to include both
a `name` and a `version`, that we were missing.

However, rather than adding more stuff to `pyproject.toml`, I've moved
the license info to the setup file and pointed `pyproject.toml` to use
`setuptools` for building (the `pyproject.toml` file is really only
needed to integrated with `black`, that doesn't support setup files...)

While I was at it I decided to migrate to a `setup.cfg` file rather than
`setup.py` since its declaritive config is usally preferred these days
(and it's a bit easier to load from version/license files than with a
`setup.py` file).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants