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

fix pypi auto #21

Merged
merged 3 commits into from
Apr 8, 2021
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
1 change: 1 addition & 0 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

on:
push:
tags: v[0-9]+.[0-9]+.[0-9]+*
branches:
- develop

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/upload-pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@

on:
push:
branches:
- main
tags: v[0-9]+.[0-9]+.[0-9]+*

jobs:
upload-pypi:
Expand All @@ -28,8 +27,9 @@ jobs:
- name: Verify git tag vs. VERSION
run: |
VERSION="v$(cat VERSION | tr -d '\t\r\n ')"
if [ "$VERSION" != "$GITHUB_REF" ]; then
echo "The package version ($VERSION) and the latest tag version ($GITHUB_REF) are different"
TAG="${GITHUB_REF/refs\/tags\//}"
if [ "$VERSION" != "$TAG" ]; then
echo "The package version ($VERSION) and the latest tag version ($TAG) are different"
exit 1
fi
- name: Install twine
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@


[Website](https://bellman.dev) |
[Documentation (latest)](https://bellman.dev/docs/latest) |
[Twitter](https://twitter.com/BellmanDevs) |
[Documentation (latest)](https://bellman.dev/docs/latest)


## What does Bellman do?
Expand Down Expand Up @@ -41,7 +42,7 @@ and [Peter Vrancx](https://github.com/pvrancx).

Bellman is an open source project. If you have relevant skills and are interested in contributing then please do contact us (see ["The Bellman Community" section](#the-bellman-community) below).

we are very grateful to our Secondmind Labs colleagues, maintainers of [GPflow](https://github.com/GPflow/GPflow) and [Trieste](https://github.com/secondmind-labs/trieste), for their help with creating contributing guidelines, instructions for users and open-sourcing in general.
We are very grateful to our Secondmind Labs colleagues, maintainers of [GPflow](https://github.com/GPflow/GPflow) and [Trieste](https://github.com/secondmind-labs/trieste) in particular, for their help with creating contributing guidelines, instructions for users and open-sourcing in general.


## Install Bellman
Expand All @@ -53,7 +54,7 @@ For latest (stable) release from [PyPI](https://pypi.org/) you can use `pip` to
$ pip install bellman
```

Use `pip` again to install the toolbox from latest source from GitHub. Check-out the `develop` branch of the [Bellman GitHub repository](https://github.com/Bellman-devs/bellman), and in the repository root run
Use `pip` to install the toolbox from latest source from GitHub. Check-out the `develop` branch of the [Bellman GitHub repository](https://github.com/Bellman-devs/bellman), and in the repository root run
```bash
$ pip install -e .
```
Expand Down
3 changes: 2 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
author = "The Bellman Contributors"

# The full version, including alpha/beta/rc tags
release = "1.0"
with open(os.path.join("..", "VERSION"), "r") as file:
release = file.read()

# -- General configuration ---------------------------------------------------

Expand Down