# Requirements
```
python3 -m pip install --upgrade build
python3 -m pip install --upgrade twine
python3 -m pip install --upgrade setuptools wheel
```
# Download repository:
```
git clone https://github.com/johanneskruse/pypi_template.git
```
# Upload:
In *pyproject.toml* you can set the name of the pacakage
## Run the following to upload:
[Packaging Python Projects](https://packaging.python.org/en/latest/tutorials/packaging-projects/)
### Generating distribution archives
Stand inside the project, i.e.
```
cd pypi_template
```
Next build the package:
```
python3 -m build
```
This command should output a lot of text and once completed should generate two files in the dist directory:
```
dist/
├── sampleproject-0.0.1-py3-none-any.whl
└── sampleproject-0.0.1.tar.gz
```
### Uploading the distribution archives
```
twine upload dist/*
```
Go to https://pypi.org/ to see the package!
# Inspiration
[setup.py vs setup.cfg in Python](https://towardsdatascience.com/setuptools-python-571e7d5500f2#:~:text=be%20more%20appropriate.-,The%20setup.,as%20the%20command%20line%20interface.)
[sample git repo project](https://github.com/pypa/sampleproject)
[Packaging Python Projects](https://packaging.python.org/en/latest/tutorials/packaging-projects/)
TODO:
- Setup with pyproject.toml file
- Note that if you want to install packages in editable mode (i.e. by running pip install -e .) you must have a valid setup.py file apart from setup.cfg and pyproject.toml. TRY TO RUN INSTEAD: pip install -e . -f .
# Acronym Generator (help generate the name)
https://acronymify.com/
Raw data
{
"_id": null,
"home_page": "",
"name": "ebrec",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "\"A. Great Maintainer\" <maintainer@example.com>",
"keywords": "sample,setuptools,development",
"author": "",
"author_email": "\"A. Random Developer\" <author@example.com>",
"download_url": "https://files.pythonhosted.org/packages/c5/06/aa6e362ce9ed6d52b188621dba69435991d0b1b1f77e41c4aaaa942b4c7e/ebrec-0.0.1.tar.gz",
"platform": null,
"description": "\n# Requirements\n```\npython3 -m pip install --upgrade build\npython3 -m pip install --upgrade twine\npython3 -m pip install --upgrade setuptools wheel\n```\n\n# Download repository: \n``` \ngit clone https://github.com/johanneskruse/pypi_template.git\n```\n\n# Upload:\n\nIn *pyproject.toml* you can set the name of the pacakage\n\n## Run the following to upload: \n[Packaging Python Projects](https://packaging.python.org/en/latest/tutorials/packaging-projects/)\n### Generating distribution archives\nStand inside the project, i.e.\n```\ncd pypi_template\n```\nNext build the package:\n```\npython3 -m build\n```\n\nThis command should output a lot of text and once completed should generate two files in the dist directory:\n```\ndist/\n\u251c\u2500\u2500 sampleproject-0.0.1-py3-none-any.whl\n\u2514\u2500\u2500 sampleproject-0.0.1.tar.gz\n```\n### Uploading the distribution archives\n```\ntwine upload dist/*\n```\n\nGo to https://pypi.org/ to see the package! \n\n\n# Inspiration\n[setup.py vs setup.cfg in Python](https://towardsdatascience.com/setuptools-python-571e7d5500f2#:~:text=be%20more%20appropriate.-,The%20setup.,as%20the%20command%20line%20interface.)\n\n[sample git repo project](https://github.com/pypa/sampleproject)\n\n[Packaging Python Projects](https://packaging.python.org/en/latest/tutorials/packaging-projects/)\n\nTODO: \n- Setup with pyproject.toml file\n- Note that if you want to install packages in editable mode (i.e. by running pip install -e .) you must have a valid setup.py file apart from setup.cfg and pyproject.toml. TRY TO RUN INSTEAD: pip install -e . -f .\n\n# Acronym Generator (help generate the name)\n\nhttps://acronymify.com/\n",
"bugtrack_url": null,
"license": "Copyright (c) 2022 TBA",
"summary": "A sample Python project",
"version": "0.0.1",
"project_urls": null,
"split_keywords": [
"sample",
"setuptools",
"development"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "6a06f3629d2f033720c3bfb90d2af0bea4abfc96aff30c8f7793a218ee96b240",
"md5": "64bbc818cb4929beffe12cdec5742342",
"sha256": "ccfcbd6a21b2013d5659fa35356be5a1fd35dd7baa0f0b0267a9b8978bb8960f"
},
"downloads": -1,
"filename": "ebrec-0.0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "64bbc818cb4929beffe12cdec5742342",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 2381,
"upload_time": "2024-02-07T13:40:20",
"upload_time_iso_8601": "2024-02-07T13:40:20.580796Z",
"url": "https://files.pythonhosted.org/packages/6a/06/f3629d2f033720c3bfb90d2af0bea4abfc96aff30c8f7793a218ee96b240/ebrec-0.0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "c506aa6e362ce9ed6d52b188621dba69435991d0b1b1f77e41c4aaaa942b4c7e",
"md5": "53a8a7d8315db5e55aaf4c4b886e3959",
"sha256": "600c30709293920d4394b0deb3891f5c33aab2b8841eb63c4f18d19740954821"
},
"downloads": -1,
"filename": "ebrec-0.0.1.tar.gz",
"has_sig": false,
"md5_digest": "53a8a7d8315db5e55aaf4c4b886e3959",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 3183,
"upload_time": "2024-02-07T13:40:22",
"upload_time_iso_8601": "2024-02-07T13:40:22.456024Z",
"url": "https://files.pythonhosted.org/packages/c5/06/aa6e362ce9ed6d52b188621dba69435991d0b1b1f77e41c4aaaa942b4c7e/ebrec-0.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-02-07 13:40:22",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "ebrec"
}