From 3ce9c2cf892ac2f786da2faa26fd0645b2c363f3 Mon Sep 17 00:00:00 2001 From: Marat Radchenko Date: Fri, 10 Mar 2023 05:40:48 -0800 Subject: [PATCH] Fix upload to PyPI (#302) Multiple things failed at once: 1. Link to readme was lost during conversion to `pyproject.toml` in f66831702365936878d44e8b33594bb93da8a595. This commit restores it. 2. PyPI only accepts rst/markdown/txt, so undo conversion of readme to AsciiDoc that was done in 55191a78aa966010604da5ed1dd5b9fb2492f016 3. twine has a bug that prevents upload from working without readme: https://github.com/pypa/twine/issues/908 Also run `twine check` on CI to detect `pyproject.toml` metadata errors earlier --- .github/workflows/ci.yml | 4 +++- README.adoc | 42 ---------------------------------------- README.md | 39 +++++++++++++++++++++++++++++++++++++ pyproject.toml | 1 + 4 files changed, 43 insertions(+), 43 deletions(-) delete mode 100644 README.adoc create mode 100644 README.md diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 62387d4e..3bd6d362 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,9 +16,11 @@ jobs: with: python-version: "3.10" - name: Install dependencies - run: pip install --upgrade build + run: pip install --upgrade build twine - name: Build package run: python -m build + - name: Check package + run: twine check --strict dist/* - name: Publish to PyPI if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/README.adoc b/README.adoc deleted file mode 100644 index c789f732..00000000 --- a/README.adoc +++ /dev/null @@ -1,42 +0,0 @@ -++++ -

Unreal Engine and Docker Logos

-

Unreal Engine 4 Docker Containers

-

Continuous IntegrationCloud RenderingUE4-Powered Microservices

-

 

-++++ - -*Looking for a place to start? -Check out the https://unrealcontainers.com/[Unreal Containers community hub] for implementation-agnostic information on using the Unreal Engine inside Docker containers, and then head to the https://docs.adamrehn.com/ue4-docker/[comprehensive ue4-docker documentation] to view details specific to using the ue4-docker project.* - -The ue4-docker Python package contains a set of Dockerfiles and accompanying build infrastructure that allows you to build Docker images for Epic Games' https://www.unrealengine.com/[Unreal Engine 4]. -The images also incorporate the infrastructure from https://github.com/adamrehn/ue4cli[ue4cli], https://github.com/adamrehn/conan-ue4cli[conan-ue4cli], and https://github.com/adamrehn/ue4-ci-helpers[ue4-ci-helpers] to facilitate a wide variety of use cases. - -Key features include: - -* Unreal Engine 4.20.0 and newer is supported. -* Both Windows containers and Linux containers are supported. -* Building and packaging UE4 projects is supported. -* Running automation tests is supported. -* Running built UE4 projects with offscreen rendering is supported via NVIDIA Docker under Linux. - -Resources: - -* *Documentation:* https://docs.adamrehn.com/ue4-docker/ -* *GitHub repository:* https://github.com/adamrehn/ue4-docker -* *Package on PyPI:* https://pypi.org/project/ue4-docker/ -* *Related articles:* https://adamrehn.com/articles/tag/Unreal%20Engine/ -* *Unreal Containers community hub:* https://unrealcontainers.com/ -* *Development channel on the Unreal Containers Community Discord server*: https://discord.gg/46CJg9fyJ9 - -== Contributing - -See the file https://github.com/adamrehn/ue4-docker/blob/master/CONTRIBUTING.md[CONTRIBUTING.md] for guidelines on how to contribute to the development of ue4-docker. - -== Legal - -Copyright © 2018 - 2022, Adam Rehn. -Licensed under the MIT License, see the file https://github.com/adamrehn/ue4-docker/blob/master/LICENSE[LICENSE] for details. - -Unreal and its logo are Epic Games' trademarks or registered trademarks in the US and elsewhere. - -Docker and the Docker logo are trademarks or registered trademarks of Docker in the United States and other countries. diff --git a/README.md b/README.md new file mode 100644 index 00000000..d40ec9c5 --- /dev/null +++ b/README.md @@ -0,0 +1,39 @@ +

Unreal Engine and Docker Logos

+

Unreal Engine 4 Docker Containers

+

Continuous IntegrationCloud RenderingUE4-Powered Microservices

+

 

+ +**Looking for a place to start? Check out the [Unreal Containers community hub](https://unrealcontainers.com/) for implementation-agnostic information on using the Unreal Engine inside Docker containers, and then head to the [comprehensive ue4-docker documentation](https://docs.adamrehn.com/ue4-docker/) to view details specific to using the ue4-docker project.** + +The ue4-docker Python package contains a set of Dockerfiles and accompanying build infrastructure that allows you to build Docker images for Epic Games' [Unreal Engine 4](https://www.unrealengine.com/). The images also incorporate the infrastructure from [ue4cli](https://github.com/adamrehn/ue4cli), [conan-ue4cli](https://github.com/adamrehn/conan-ue4cli), and [ue4-ci-helpers](https://github.com/adamrehn/ue4-ci-helpers) to facilitate a wide variety of use cases. + +Key features include: + +- Unreal Engine 4.20.0 and newer is supported. +- Both Windows containers and Linux containers are supported. +- Building and packaging UE4 projects is supported. +- Running automation tests is supported. +- Running built UE4 projects with offscreen rendering is supported via NVIDIA Docker under Linux. + +Resources: + +- **Documentation:** +- **GitHub repository:** +- **Package on PyPI:** +- **Related articles:** +- **Unreal Containers community hub:** +- **Development channel on the Unreal Containers Community Discord server**: + + +## Contributing + +See the file [CONTRIBUTING.md](https://github.com/adamrehn/ue4-docker/blob/master/CONTRIBUTING.md) for guidelines on how to contribute to the development of ue4-docker. + + +## Legal + +Copyright © 2018 - 2021, Adam Rehn. Licensed under the MIT License, see the file [LICENSE](https://github.com/adamrehn/ue4-docker/blob/master/LICENSE) for details. + +Unreal and its logo are Epic Games' trademarks or registered trademarks in the US and elsewhere. + +Docker and the Docker logo are trademarks or registered trademarks of Docker in the United States and other countries. diff --git a/pyproject.toml b/pyproject.toml index c7c31ab8..a3f71c96 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,6 +4,7 @@ version = "0.0.104" description = "Windows and Linux containers for Unreal Engine" requires-python = ">= 3.7" license = { file = "LICENSE" } +readme = "README.md" authors = [ { name = "Adam Rehn", email = "adam@adamrehn.com" }, { name = "Marat Radchenko", email = "marat@slonopotamus.org" },