Code Monkey home page Code Monkey logo

gh-issue-sandbox's Introduction

A Simple Python Project Skeleton

This repo attempts to standardize the structure of the Python-based project's repositories using modern Python packaging and configuration techniques. Using this blog post as inspiration, this repository serves as the base for all new Python projects and is mergeable in existing repositories as well.

Usage

A brand new project

git init my-new-repo
cd my-new-repo
git pull [email protected]:nexB/skeleton

# Create the new repo on GitHub, then update your remote
git remote set-url origin [email protected]:nexB/your-new-repo.git

From here, you can make the appropriate changes to the files for your specific project.

Update an existing project

cd my-existing-project
git remote add skeleton [email protected]:nexB/skeleton
git fetch skeleton
git merge skeleton/main --allow-unrelated-histories

This is also the workflow to use when updating the skeleton files in any given repository.

More usage instructions can be found in docs/skeleton-usage.rst.

Release Notes

  • 2022-03-04:
    • Synchronize configure and configure.bat scripts for sanity
    • Update CI operating system support with latest Azure OS images
    • Streamline utility scripts in etc/scripts/ to create, fetch and manage third-party dependencies There are now fewer scripts. See etc/scripts/README.rst for details
  • 2021-09-03:
    • configure now requires pinned dependencies via the use of requirements.txt and requirements-dev.txt
    • configure can now accept multiple options at once
    • Add utility scripts from scancode-toolkit/etc/release/ for use in generating project files
    • Rename virtual environment directory from tmp to venv
    • Update README.rst with instructions for generating requirements.txt and requirements-dev.txt, as well as collecting dependencies as wheels and generating ABOUT files for them.
  • 2021-05-11:
    • Adopt new configure scripts from ScanCode TK that allows correct configuration of which Python version is used.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.