diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml deleted file mode 100644 index e49f9d0..0000000 --- a/.github/workflows/codeql.yml +++ /dev/null @@ -1,40 +0,0 @@ -name: "CodeQL" - -on: - push: - branches: - - "main" - pull_request: - # The branches below must be a subset of the branches above - branches: [ "main" ] - schedule: - - cron: '15 17 * * 5' - -jobs: - analyze: - name: Analyze - runs-on: ubuntu-latest - permissions: - actions: read - contents: read - security-events: write - - strategy: - fail-fast: false - matrix: - language: [ 'python' ] - - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - # Initializes the CodeQL tools for scanning. - - name: Initialize CodeQL - uses: github/codeql-action/init@v3 - with: - languages: ${{ matrix.language }} - - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v3 - with: - category: "/language:${{matrix.language}}" diff --git a/build_requirements.txt b/build_requirements.txt index c6f5a2f..4ca2907 100644 --- a/build_requirements.txt +++ b/build_requirements.txt @@ -1,2 +1,2 @@ -build==0.9.0 -twine==5.1.1 \ No newline at end of file +build==1.3.0 +twine==6.2.0 \ No newline at end of file diff --git a/make_release.sh b/make_release.sh index 5ad6e8a..86db32b 100644 --- a/make_release.sh +++ b/make_release.sh @@ -11,9 +11,11 @@ sed -i 's/version = "0.0.0"/version = "'$new_ver'"/' pyproject.toml sed -i 's/release = "0.0.0"/release = "'$new_ver'"/' docs/conf.py sed -i 's/SwVersion="0.0.1"/SwVersion="'$new_ver'"/' PyStageLinQ/PyStageLinQ.py - +echo "Removing old files" rm dist/* -f +echo "Build release" python3 -m build +echo "upload release to pypi" twine upload dist/* -u __token__ -p $1 diff --git a/pyproject.toml b/pyproject.toml index 080702e..d103586 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -40,4 +40,16 @@ testpaths = [ ] pythonpath = [ "." +] + +[tool.hatch.build] +exclude = [ + ".circleci/", + ".github/", + ".gitignore", + "*.md", + "tests/", + "docs/", + "tools/", + "make_release.sh", ] \ No newline at end of file