Skip to content

Commit

Permalink
include requirements.in in built package (#404)
Browse files Browse the repository at this point in the history
  • Loading branch information
cs01 authored Sep 6, 2021
1 parent 6c06eae commit 9099fb3
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 3 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,27 @@ jobs:
run: |
nox --non-interactive --session tests-${{ matrix.python-version }}
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: [3.9]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install nox
- name: Execute Tests
run: |
nox --non-interactive --session build
lint:
runs-on: ubuntu-latest
steps:
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# gdbgui release history

## 0.15.0.1

This release has no changes to features or usability. The only change is to include a file used by other package maintainers.

- Include all files needed to rebuild from source (#403)

## 0.15.0.0

This release is focused mostly on Python 3.9 compatibility and updating dependencies
Expand Down
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
include README.md
include LICENSE
include requirements.in

graft gdbgui
# these files are built and must be included in distribution
Expand Down Expand Up @@ -29,7 +30,6 @@ exclude jest.config.js
exclude make_executable.py
exclude mkdocs.yml
exclude package.json
exclude requirements.in
exclude requirements.txt
exclude tsconfig.json
exclude tslint.json
Expand Down
2 changes: 1 addition & 1 deletion gdbgui/VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.15.0.0
0.15.0.1
5 changes: 4 additions & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import hashlib
import nox # type: ignore

import glob

nox.options.reuse_existing_virtualenvs = True
nox.options.sessions = ["tests", "lint", "docs"]
Expand Down Expand Up @@ -131,9 +131,12 @@ def serve(session):
def build(session):
session.install(*publish_deps)
session.run("rm", "-rf", "dist", "build", external=True)
session.run("yarn", external=True)
session.run("yarn", "build", external=True)
session.run("python", "setup.py", "--quiet", "sdist", "bdist_wheel")
session.run("twine", "check", "dist/*")
for built_package in glob.glob("dist/*"):
session.run("pip", "install", "--force-reinstall", built_package)


@nox.session(reuse_venv=True)
Expand Down

0 comments on commit 9099fb3

Please sign in to comment.