diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 8cd4fb90..4e44e190 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -4,10 +4,10 @@ updates: directory: "/" schedule: interval: daily - time: "13:00" + time: "16:16" open-pull-requests-limit: 10 reviewers: - - dciborow + - altcoder allow: - dependency-type: direct - dependency-type: indirect @@ -17,6 +17,6 @@ updates: directory: "/" schedule: interval: daily - time: "13:00" + time: "16:32" commit-message: prefix: "fix: " diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml deleted file mode 100644 index eb8ae3ed..00000000 --- a/.github/workflows/CI.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: Python CI -on: - push: - branches: [ main ] - pull_request: - branches: [ main ] - release: - types: [created] - workflow_dispatch: - -jobs: - validation: - uses: microsoft/action-python/.github/workflows/validation.yml@0.6.4 - with: - workdir: '.' - - publish: - uses: microsoft/action-python/.github/workflows/publish.yml@0.6.4 - secrets: - PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }} - TEST_PYPI_PASSWORD: ${{ secrets.TEST_PYPI_PASSWORD }} diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..bcba5e98 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,20 @@ +# This workflow will install Python dependencies, run tests and lint with a variety of Python versions +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions + +name: Python Build Workflow + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + release: + types: [created] + workflow_dispatch: + +jobs: + validation: + uses: ac-analytics/action-python/.github/workflows/validation.yml@v0.1.1 + with: + workdir: '.' + testdir: 'tests' \ No newline at end of file diff --git a/.github/workflows/semantic-pr-check.yml b/.github/workflows/check-pr.yml similarity index 100% rename from .github/workflows/semantic-pr-check.yml rename to .github/workflows/check-pr.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 9d715609..2971c629 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -4,7 +4,7 @@ on: jobs: publish: - uses: microsoft/action-python/.github/workflows/publish.yml@0.6.4 + uses: ac-analytics/action-python/.github/workflows/publish.yml@v0.1.1 secrets: PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }} TEST_PYPI_PASSWORD: ${{ secrets.TEST_PYPI_PASSWORD }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..dca35a31 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,7 @@ +name: Python Release Workflow +on: + workflow_call: + +jobs: + release: + uses: ac-analytics/action-python/.github/workflows/release.yml@v0.1.1 diff --git a/.github/workflows/schedule-update-actions.yml b/.github/workflows/sched-actions-update.yml similarity index 72% rename from .github/workflows/schedule-update-actions.yml rename to .github/workflows/sched-actions-update.yml index f4c30b60..0be8ce50 100644 --- a/.github/workflows/schedule-update-actions.yml +++ b/.github/workflows/sched-actions-update.yml @@ -12,14 +12,14 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3.5.2 + - uses: actions/checkout@v4 with: # [Required] Access token with `workflow` scope. - token: ${{ secrets.PAT }} + token: ${{ secrets.WORKFLOW_SECRET }} - name: Run GitHub Actions Version Updater - uses: saadmk11/github-actions-version-updater@v0.7.4 + uses: saadmk11/github-actions-version-updater@v0.8.1 with: # [Required] Access token with `workflow` scope. - token: ${{ secrets.PAT }} + token: ${{ secrets.WORKFLOW_SECRET }} pull_request_title: "ci: Update GitHub Actions to Latest Version" diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md deleted file mode 100644 index f9ba8cf6..00000000 --- a/CODE_OF_CONDUCT.md +++ /dev/null @@ -1,9 +0,0 @@ -# Microsoft Open Source Code of Conduct - -This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). - -Resources: - -- [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/) -- [Microsoft Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) -- Contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with questions or concerns diff --git a/README.md b/README.md index cf349a65..14ecbc49 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ # Python Project Template -This project is a template for creating Python projects that follows the Python Standards declared in PEP 621. It uses a pyproject.yaml file to configure the project and Flit to simplify the build process and publish to PyPI. Flit simplifies the build and packaging process for Python projects by eliminating the need for separate setup.py and setup.cfg files. With Flit, you can manage all relevant configurations within the pyproject.toml file, streamlining development and promoting maintainability by centralizing project metadata, dependencies, and build specifications in one place. +This project is a template for creating Python projects that follows the Python Standards declared in PEP 621. It uses a pyproject.toml file to configure the project. + +Flit is used to simplify the build process and publish to PyPI, however for private packages or more complicated setups the use of a separate setup.py and setup.cfg files is recommended. With Flit, you can manage all relevant configurations within the pyproject.toml file, streamlining development and promoting maintainability by centralizing project metadata, dependencies, and build specifications in one place. ## Project Organization diff --git a/SECURITY.md b/SECURITY.md index a050f362..1f9d3d44 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -38,4 +38,4 @@ We prefer all communications to be in English. Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://www.microsoft.com/en-us/msrc/cvd). - + \ No newline at end of file diff --git a/SUPPORT.md b/SUPPORT.md index bcebadb8..148ee73b 100644 --- a/SUPPORT.md +++ b/SUPPORT.md @@ -1,25 +1,25 @@ -# TODO: The maintainer of this repo has not yet edited this file - -**REPO OWNER**: Do you want Customer Service & Support (CSS) support for this product/project? - -- **No CSS support:** Fill out this template with information about how to file issues and get help. -- **Yes CSS support:** Fill out an intake form at [aka.ms/spot](https://aka.ms/spot). CSS will work with/help you to determine next steps. More details also available at [aka.ms/onboardsupport](https://aka.ms/onboardsupport). -- **Not sure?** Fill out a SPOT intake as though the answer were "Yes". CSS will help you decide. - -*Then remove this first heading from this SUPPORT.MD file before publishing your repo.* - -# Support - -## How to file issues and get help - -This project uses GitHub Issues to track bugs and feature requests. Please search the existing -issues before filing new issues to avoid duplicates. For new issues, file your bug or -feature request as a new Issue. - -For help and questions about using this project, please **REPO MAINTAINER: INSERT INSTRUCTIONS HERE -FOR HOW TO ENGAGE REPO OWNERS OR COMMUNITY FOR HELP. COULD BE A STACK OVERFLOW TAG OR OTHER -CHANNEL. WHERE WILL YOU HELP PEOPLE?**. - -## Microsoft Support Policy - -Support for this **PROJECT or PRODUCT** is limited to the resources listed above. +# TODO: The maintainer of this repo has not yet edited this file + +**REPO OWNER**: Do you want Customer Service & Support (CSS) support for this product/project? + +- **No CSS support:** Fill out this template with information about how to file issues and get help. +- **Yes CSS support:** Fill out an intake form at [aka.ms/spot](https://aka.ms/spot). CSS will work with/help you to determine next steps. More details also available at [aka.ms/onboardsupport](https://aka.ms/onboardsupport). +- **Not sure?** Fill out a SPOT intake as though the answer were "Yes". CSS will help you decide. + +*Then remove this first heading from this SUPPORT.MD file before publishing your repo.* + +# Support + +## How to file issues and get help + +This project uses GitHub Issues to track bugs and feature requests. Please search the existing +issues before filing new issues to avoid duplicates. For new issues, file your bug or +feature request as a new Issue. + +For help and questions about using this project, please **REPO MAINTAINER: INSERT INSTRUCTIONS HERE +FOR HOW TO ENGAGE REPO OWNERS OR COMMUNITY FOR HELP. COULD BE A STACK OVERFLOW TAG OR OTHER +CHANNEL. WHERE WILL YOU HELP PEOPLE?**. + +## Microsoft Support Policy + +Support for this **PROJECT or PRODUCT** is limited to the resources listed above. \ No newline at end of file diff --git a/docs/conf.py b/docs/conf.py index 4867d959..6523c5fd 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -18,9 +18,9 @@ # -- Project information ----------------------------------------------------- -project = "ai-python docs" -copyright = "2022, Daniel Ciborowski" -author = "Daniel Ciborowski" +project = "python docs" +project_copyright = "2024, Ayala Corporation" +author = "AC Analytics" # The full version, including alpha/beta/rc tags release = "0.1.0" diff --git a/docs/index.rst b/docs/index.rst index b10c570d..bdb34ab6 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -1,4 +1,4 @@ -.. ai-python docs documentation master file, created by +.. ada docs documentation master file, created by sphinx-quickstart on Thu May 5 14:06:45 2022. You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. diff --git a/pyproject.toml b/pyproject.toml index a8a76c7f..b1851bc4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,9 +3,9 @@ requires = ["flit"] build-backend = "flit.buildapi" [project] -name = "py-project-toml" +name = "python-package-template" authors = [ - {name = "Daniel Ciborowski", email = "dciborow@microsoft.com"}, + {name = "AC Analytics", email = "analytics@ayala.com"}, ] description = "Sample Python Project for creating a new Python Module" readme = "README.md" @@ -47,9 +47,9 @@ test = [ ] [project.urls] -Documentation = "https://github.com/microsoft/python-package-template/tree/main#readme" -Source = "https://github.com/microsoft/python-package-template" -Tracker = "https://github.com/microsoft/python-package-template/issues" +Documentation = "https://github.com/ac-analytics/python-package-template/tree/main#readme" +Source = "https://github.com/ac-analytics/python-package-template" +Tracker = "https://github.com/ac-analytics/python-package-template/issues" [tool.flit.module] name = "python_package" @@ -168,7 +168,7 @@ extension-pkg-whitelist= [ "scipy" ] ignore="CVS" -ignore-patterns="test.*?py,conftest.py" +ignore-patterns="test.*?py,conf.py,conftest.py" init-hook='import sys; sys.setrecursionlimit(8 * sys.getrecursionlimit())' jobs=0 limit-inference-results=100 diff --git a/src/python_package/__init__.py b/src/python_package/__init__.py index 91150271..496e7d00 100644 --- a/src/python_package/__init__.py +++ b/src/python_package/__init__.py @@ -1,8 +1,8 @@ # ------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. +# Copyright (c) Ayala Corporation. All rights reserved. # Licensed under the MIT License. See LICENSE in project root for information. # ------------------------------------------------------------- """Python Package Template""" from __future__ import annotations -__version__ = "0.0.2" +__version__ = "0.1.0" diff --git a/src/python_package/hello_world.py b/src/python_package/hello_world.py index db43d690..25b767a9 100644 --- a/src/python_package/hello_world.py +++ b/src/python_package/hello_world.py @@ -1,5 +1,5 @@ # --------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. +# Copyright (c) Ayala Corporation. All rights reserved. # Licensed under the MIT License. See LICENSE in project root for information. # --------------------------------------------------------------------------------- """This is a Sample Python file.""" diff --git a/tests/conftest.py b/tests/conftest.py index ce475219..33b080c5 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,5 +1,5 @@ # --------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. +# Copyright (c) Ayala Corporation. All rights reserved. # Licensed under the MIT License. See LICENSE in project root for information. # --------------------------------------------------------------------------------- """ diff --git a/tests/test_methods.py b/tests/test_methods.py index 40b57916..8854f818 100644 --- a/tests/test_methods.py +++ b/tests/test_methods.py @@ -1,5 +1,5 @@ # --------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. +# Copyright (c) Ayala Corporation. All rights reserved. # Licensed under the MIT License. See LICENSE in project root for information. # --------------------------------------------------------------------------------- """This is a sample python file for testing functions from the source code.""" @@ -26,7 +26,7 @@ def test_hello(unit_test_mocks: None): def test_int_hello(): """ - This test is marked implicitly as an integration test because the name contains "_init_" + This test is marked implicitly as an integration test because the name contains "_int_" https://docs.pytest.org/en/6.2.x/example/markers.html#automatically-adding-markers-based-on-test-names """ hello_test()