GithubHelp home page GithubHelp logo

pygcgen's People

Stargazers

 avatar  avatar

Forkers

2weizen

pygcgen's Issues

Add user definable sections

Let the user add own sections for defined labels.
Example:
Issue #7 has the label "notice". In the changelog it will show up like:


Important Notice:

  • Add user definable sections #7

Publish to PyPI

Would love to have this be available through a pip install!

Socket gaierror with default simultaneous requests

Description:
When running with the hardcoded MAX_SIMULTANEOUS_REQUESTS set to 25, in fetcher.py, I get one error and traceback when one of the worker makes a connection. See below for traceback. So one run generates one traceback.

I've tried setting MAX_SIMULTANEOUS_REQUESTS to 1, which avoids the error. Setting it to 10 also avoids the error. I haven't investigated further.

If this setting is sensitive to different users, it would be cool to have a command line option to easily change it. But maybe it's enough to lower it somewhat? Or maybe there's a totally different approach and solution to this problem?

Thanks for this package! It's saved me a bunch of work.

pygcgen version:
pygcgen v0.2.2

Tested Python versions:
Python 3.5.4
Python 3.6.5

Tested command:

pygcgen -u OWNER -p REPO --section "**Breaking Changes:**" "breaking change" --with-unreleased --future-release 0.13.0 -v

Traceback:

Traceback (most recent call last):
  File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.6/threading.py", line 864, in run
    self._target(*self._args, **self._kwargs)
  File "/home/martin/.virtualenvs/p3.6/lib/python3.6/site-packages/pygcgen/fetcher.py", line 260, in worker
    page=page, per_page=PER_PAGE_NUMBER)
  File "/home/martin/.virtualenvs/p3.6/lib/python3.6/site-packages/agithub/base.py", line 157, in get
    return self.request('GET', url, None, headers)
  File "/home/martin/.virtualenvs/p3.6/lib/python3.6/site-packages/agithub/base.py", line 207, in request
    conn.request(method, url, requestBody.process(), headers)
  File "/usr/lib/python3.6/http/client.py", line 1239, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1285, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1234, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 964, in send
    self.connect()
  File "/usr/lib/python3.6/http/client.py", line 1392, in connect
    super().connect()
  File "/usr/lib/python3.6/http/client.py", line 936, in connect
    (self.host,self.port), self.timeout, self.source_address)
  File "/usr/lib/python3.6/socket.py", line 704, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

Tag label headings are H1 instead of H2

First of all thank you for this port. I really like the original ruby version but being a python shop this is much easier to integrate into out workflows.

One difference I noticed when trying to move existing projects to this port is that the label headers are being set as H1s instead of H2s for example

For Example

# Change Log

# [5.1.1](https://github.com/foo/bar/tree/5.1.1) (2018-05-22)

The ruby version uses H2s (## ...) and it does seem like more logical HTML since # Change Log is an H1.

That version looks like

# Change Log

## [5.1.1](https://github.com/foo/bar/tree/5.1.1) (2018-05-22)

Is there any to configure this?

Again thanks for the port.

Thank you :-)

Hello @topic2k, just found your port from Ruby and just wanted to say Thank you!

We have python-only [and slim] infrastructure and incorporating Ruby and gems and all the other Ruby related things of proper version into our CI just to get the Changelog built was a huge pain.

Now it is just

RUN pip install --no-cache-dir pygcgen

In our dockerfile for CI.

Thanks once again. This issue is wontfix please.

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.