From 0426e0c42c2b99cb08c1f992ec8ee34514a2ac0d Mon Sep 17 00:00:00 2001 From: Simon Diesenreiter Date: Sun, 10 Nov 2024 07:37:02 -0800 Subject: [PATCH] remove release to PiPy --- .gitea/workflows/release.yml | 40 ++++++++++++++++++------------------ ABOUT_THIS_TEMPLATE.md | 2 +- CONTRIBUTING.md | 5 +---- README.md | 14 ++----------- 4 files changed, 24 insertions(+), 37 deletions(-) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 76aa2c9..32c872d 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -26,23 +26,23 @@ jobs: with: body_path: release_message.md - deploy: - needs: release - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - name: Set up Python - uses: actions/setup-python@v1 - with: - python-version: '3.x' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install setuptools wheel twine - - name: Build and publish - env: - TWINE_USERNAME: __token__ - TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} - run: | - python setup.py sdist bdist_wheel - twine upload dist/* + # deploy: + # needs: release + # runs-on: ubuntu-latest + # steps: + # - uses: actions/checkout@v1 + # - name: Set up Python + # uses: actions/setup-python@v1 + # with: + # python-version: '3.x' + # - name: Install dependencies + # run: | + # python -m pip install --upgrade pip + # pip install setuptools wheel twine + # - name: Build and publish + # env: + # TWINE_USERNAME: __token__ + # TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} + # run: | + # python setup.py sdist bdist_wheel + # twine upload dist/* diff --git a/ABOUT_THIS_TEMPLATE.md b/ABOUT_THIS_TEMPLATE.md index 988751a..44d9f7e 100644 --- a/ABOUT_THIS_TEMPLATE.md +++ b/ABOUT_THIS_TEMPLATE.md @@ -112,7 +112,7 @@ with module imports or anything else, it is useful for CI, logs and debugging. ### Why to include `tests`, `history` and `Containerfile` as part of the release? The `MANIFEST.in` file is used to include the files in the release, once the -project is released to PyPI all the files listed on MANIFEST.in will be included +project is released to artifactory all the files listed on MANIFEST.in will be included even if the files are static or not related to Python. Some build systems such as RPM, DEB, AUR for some Linux distributions, and also diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 02fc87f..ac4beb7 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -95,10 +95,7 @@ init: ## Initialize the project based on an application template. This project uses [semantic versioning](https://semver.org/) and tags releases with `X.Y.Z` Every time a new tag is created and pushed to the remote repo, gitea actions will -automatically create a new release on gitea and trigger a release on PyPI. - -For this to work you need to setup a secret called `PIPY_API_TOKEN` on the project settings>secrets, -this token can be generated on [pypi.org](https://pypi.org/account/). +automatically create a new release on gitea. To trigger a new release all you need to do is. diff --git a/README.md b/README.md index 3da85b9..e2c9464 100644 --- a/README.md +++ b/README.md @@ -10,10 +10,8 @@ See also 1. Create a new repository from this template and choose a name for your project (e.g. `my_awesome_project` - recommendation is to use all lowercase and underscores separation for repo names.) 2. Wait until the first run of CI finishes (Gitea Actions will process the template and commit to your new repo) -3. If you want Automatic Release to [PyPI](https://pypi.org) - On the new repository `settings->secrets` add your `PYPI_API_TOKEN` (get the tokens on PyPI website) -4. Read the file [CONTRIBUTING.md](CONTRIBUTING.md) -5. Then clone your new project and happy coding! +3. Read the file [CONTRIBUTING.md](CONTRIBUTING.md) +4. Then clone your new project and happy coding! > **NOTE**: **WAIT** until first CI run on gitea actions before cloning your new project. @@ -29,8 +27,6 @@ See also `Containerfile` is a more open standard for building container images than Dockerfile, you can use buildah or docker with this file. - ๐Ÿงช Testing structure using [pytest](https://docs.pytest.org/en/latest/) - โœ… Code linting using [flake8](https://flake8.pycqa.org/en/latest/) -- ๐Ÿ“Š Code coverage reports using [codecov](https://about.codecov.io/sign-up/) -- ๐Ÿ›ณ๏ธ Automatic release to [PyPI](https://pypi.org) using [twine](https://twine.readthedocs.io/en/latest/) and gitea actions. - ๐ŸŽฏ Entry points to execute your program using `python -m ` or `$ project_name` with basic CLI argument parsing. - ๐Ÿ”„ Continuous integration using [Gitea Actions](.gitea/workflows/) with jobs to lint, test and release your project on Linux, Mac and Windows environments. @@ -53,12 +49,6 @@ cd project_name make install ``` -From pypi: - -```bash -pip install project_name -``` - ## Executing This application has a CLI interface that extends the Flask CLI.