Skip to content
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

Set nightly build project.name in pyproject.toml #1380

Merged
merged 1 commit into from
Dec 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: Nightly
name: Development builds
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"

Expand All @@ -15,10 +16,16 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Install dependencies
- name: Install dependencies and customize pyproject.toml
run: |
python -m pip install -U pip
python -m pip install build
# Download dasel to modify pyproject.toml
curl -sSLf https://github.com/TomWright/dasel/releases/download/v2.0.2/dasel_linux_amd64 \
-L -o /tmp/dasel && chmod +x /tmp/dasel

/tmp/dasel put -f pyproject.toml project.name -v aesara-nightly

# Install build prerequisites
python -m pip install -U pip build
- name: Build the sdist
run: python -m build --sdist .
env:
Expand Down
6 changes: 0 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,8 @@
dist = Distribution()
dist.parse_config_files()


NAME: str = dist.get_name() # type: ignore

# Handle builds of nightly release
if "BUILD_AESARA_NIGHTLY" in os.environ:
NAME += "-nightly"

from versioneer import get_versions as original_get_versions

def get_versions():
Expand All @@ -32,7 +27,6 @@ def get_versions():

if __name__ == "__main__":
setup(
name=NAME,
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
)