Git Product home page Git Product logo

x20bf's Introduction

0x20bf - python implementation

๐Ÿ ๐Ÿฅ• Github Twitter


python.yml

Getting Started

git clone https://github.com/x20bf-org/x20bf.git
cd x20bf
git clone https://github.com/x20bf-org/x20bf.git
cd x20bf
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
pip install -e .
help

report               environment args

init                 initialize requirements
initialize           run 0x020bf/scripts/initialize
requirements         pip install --user -r requirements.txt

poetry-build
poetry-install

venv                 create python3 virtual environment
test-venv            source .venv/bin/activate; pip install -r requirements.txt;
test-test            python3 ./tests/test.py
test-venv-p2p        p2p  test battery
test-venv-p2ps       p2ps test battery
test-depends         test-gnupg test-p2p
test-gnupg           python3 ./tests/depends/gnupg/test_gnupg.py
test-p2p             python3 ./tests/depends/p2p/setup.py
venv-clean           rm -rf venv rokeys test_gnupg.log
test-p2p             python3 ./tests/test.py

PACKAGE

build                python3 setup.py build
install              python3 -m pip install -e .
dist                 python3 setup.py bdist_egg sdist

SUB-PACKAGES

        depends
install-depends      install python <packages>
install-gnupg        install python gnupg
install-p2p          install python p2pnetwork
install-git          install python GitPython
install-tor          install python torpy
install-rustup       install rust toolchain

pre-commit           pre-commit run -a
                     install .git/hooks/pre-commit

docs                 build docs from sources/*.md
clean                rm -rf build
serve                serve repo on $(PORT)

gui

make                 venv && . venv/bin/activate

docker               build an alpine docker container

docker-test          build an alpine docker container

brew-bundle          brew bundle --file Brewfile

push-subtrees        push all subtrees to their repos

Check linting and formatting

  pre-commit run -a

Build for distribution

  python3 setup.py build

Referral Links:

DigitalOcean Referral Badge

x20bf's People

Contributors

randymcmillan avatar

Stargazers

 avatar Jonathan Zernik avatar

Watchers

 avatar  avatar

Forkers

0x20bf-org

x20bf's Issues

Failure to build on M1 Apple

tried linking several libraries to cryptography links but still getting error,
see original mention here: #6 (comment)

same issue also seen on another project here:
Election-Tech-Initiative/electionguard-python#370

haven't found a resolution yet for M1 Apple on err:

 build/temp.macosx-11-arm64-3.9/_openssl.c:575:10: fatal error: 'openssl/opensslv.h' file not found
      #include <openssl/opensslv.h>
               ^~~~~~~~~~~~~~~~~~~~
      1 error generated.```

make install and make build error

looks like it requires rust compiler, and its not installed by default

Maybe ask the user if they don't have it on their system, do they want to install and add in rust install e.g. curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh somewhere?

reference: https://www.rust-lang.org/learn/get-started

Building wheels for collected packages: cryptography
  Building wheel for cryptography (pyproject.toml) ... error
  error: subprocess-exited-with-error

  ร— Building wheel for cryptography (pyproject.toml) did not run successfully.
  โ”‚ exit code: 1
  โ•ฐโ”€> [63 lines of output]
      running bdist_wheel
      running build
      running build_py
      running egg_info
      writing src/cryptography.egg-info/PKG-INFO
      writing dependency_links to src/cryptography.egg-info/dependency_links.txt
      writing requirements to src/cryptography.egg-info/requires.txt
      writing top-level names to src/cryptography.egg-info/top_level.txt
      reading manifest file 'src/cryptography.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      no previously-included directories found matching 'docs/_build'
      warning: no previously-included files found matching 'vectors'
      warning: no previously-included files matching '*' found under directory 'vectors'
      warning: no previously-included files matching '*' found under directory '.github'
      warning: no previously-included files found matching 'release.py'
      warning: no previously-included files found matching '.coveragerc'
      warning: no previously-included files found matching 'codecov.yml'
      warning: no previously-included files found matching '.readthedocs.yml'
      warning: no previously-included files found matching 'dev-requirements.txt'
      warning: no previously-included files found matching 'tox.ini'
      warning: no previously-included files found matching 'mypy.ini'
      warning: no previously-included files matching '*' found under directory '.circleci'
      adding license file 'LICENSE'
      adding license file 'LICENSE.APACHE'
      adding license file 'LICENSE.BSD'
      adding license file 'LICENSE.PSF'
      running build_ext
      generating cffi module 'build/temp.macosx-11-arm64-3.9/_openssl.c'
      already up-to-date
      running build_rust

          =============================DEBUG ASSISTANCE=============================
          If you are seeing a compilation error please try the following steps to
          successfully install cryptography:
          1) Upgrade to the latest pip and try again. This will fix errors for most
             users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
          2) Read https://cryptography.io/en/latest/installation/ for specific
             instructions for your platform.
          3) Check our frequently asked questions for more information:
             https://cryptography.io/en/latest/faq/
          4) Ensure you have a recent Rust toolchain installed:
             https://cryptography.io/en/latest/installation/#rust

          Python: 3.9.10
          platform: macOS-11.6-arm64-arm-64bit
          pip: n/a
          setuptools: 60.10.0
          setuptools_rust: 1.1.2
          =============================DEBUG ASSISTANCE=============================

      error: can't find Rust compiler

      If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler.

      To update pip, run:

          pip install --upgrade pip

      and then retry package installation.

      If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain.

      This package requires Rust >=1.41.0.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for cryptography
Failed to build cryptography
ERROR: Could not build wheels for cryptography, which is required to install pyproject.toml-based projects```

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.